﻿@model FILSTARTUPS_CMS.Models.TotalPost

@{
    ViewBag.Title = "TestModel";
}

<h2>Category</h2>
<ul>
@foreach (var item in Model.cat_)
{
    <li>@item.catidPK</li>
    <li>@item.categoryname</li>
}
</ul>

<h2>Post</h2>
<ul>
@foreach (var item_ in Model.post_)
{
    <li>@item_.postidPK</li>
    <li>@item_.posttitle</li>
}
</ul>
@*
<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
            @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
        </td>
    </tr>
}

</table>
*@